﻿#region 命名空间

using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Ext.Net.MVC;
using Sharp.Infrastructure;

#endregion

namespace Sharp.Web.Models
{
    public class UserModel : IViewModel
    {
        [HiddenInput]
        public Guid Id { get; set; }


        [Display(Name = "用户名"), Required]
        public string UserName { get; set; }

        [Display(Name = "密码"), DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "电子邮件"),DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [Display(Name = "是否禁用")]
        public bool? IsDisabled { get; set; }

        [Display(Name = "注册日期")]
        public DateTime? DateRegistered { get; set; }

        [Display(Name = "最后登录IP")]
        public string LastLoginIP { get; set; }

        [Display(Name = "最后登录日期")]
        public DateTime? DateLastLogon { get; set; }

        /// <summary>
        /// 是否被锁定
        /// </summary>
        [Display(Name = "是否被锁定")]
        public bool IsLockedOut { get; set; }

        [Display(Name = "联系人")]
        public string Contact { get; set; }

        [Display(Name = "手机号码")]
        public string PhoneNumber { get; set; }

    }
}